# count = 100
# miles = 1000.0
# name = "shit"
# # a = b = c = 2
# a, b, c, d = 1, 5.3, 'dddd', True

# print(type(a), type(b), type(c), type(d))
# print(isinstance(a, int))
'''
String
str = "Runoob"
print(str[0:-1])
print(str[2:5])
print(str[0])
print(str[0:])
print(str[:5])
print(str[:])

'''

list = ['Runoob', 110, 2.23, 70.2, True]
# tinylist = [123, 'abcd']

'''
print(list)
print(list[0])
print(list[1:3])
print(list[2:])
print(list * 2)
print(list + tinylist)
'''
# list[0] = 'Hello'
# list[2:5] = [13, 14, 15]
# print(list)

# list[2:5] = []
# print(list)
# print(list[-1::-1])

tuple = ('abcd', 123, 2.50, True, list)
tinytuple = ('hello', 110)

'''
# 元组打印
print(tuple[4])
print(tuple[1:3])
print(tuple[2:])
print(tuple[:-2])
print(tuple * 2)
print(tuple + tinytuple)
'''


sites = {'Google', 'Taobao', 'Runoob', 'Facebook', 'Zhihu', 'Baidu'}

'''
print(sites)

if 'Runoob' in sites:
    print("in")
else:
    print("not in")

'''

dict = {}
dict['one'] = "1-Runoob"
dict[2] = 1235

tinydict = {'name': 'zhangsan', 'age': 'm', 'address': 'XXX市XXX街道'}

print(dict['one'])
print(dict[2])

print(tinydict.keys())    # all keys
print(tinydict.values())  # all values

for k, v in tinydict.items():
    print(k, ":", v)
